package com.eudon.user.common;

/**
 * @author eudon
 * @description 常用的正则表达式
 * @date 2025/9/15
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class RegularExpressions {
    private RegularExpressions() {}

    //邮箱
    public static final String EMAIL_PATTERN =
            "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$";
    //手机
    public static final String PHONE_PATTERN =
            "^1[3-9]\\d{9}$";
    //身份证
    public static final String ID_CARD_PATTERN =
            "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";


}
